package com.study.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.pagehelper.PageInfo;
import com.study.bean.Student;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author mengxj
 */
public interface StudentService {

    List<String> studentNames();

    List<Student> students1(Integer pageNum, Integer pageSize);

    List<Student> students2(Integer pageNum, Integer pageSize);

    PageInfo<Student> students2_1(Integer pageNum, Integer pageSize);

    List<Student> students3(Integer pageNum, Integer pageSize);

    IPage<Student> students31(Integer pageNum, Integer pageSize);

    /**
     * 根据条件查询Student
     *
     * @param age 年龄，大于条件
     * @param address 地址，模糊查询条件
     * @param orderByColumn 列 排序列，先假设不存在输入不对的情况
     * @return 学生列表
     */
    List<Student> studentByParam(Integer age, String address, String orderByColumn);

    List<Student> studentByParamPlus(Integer age, String address, String orderByColumn);

    IPage<Student> studentByParamPlusPage(Integer age, String address, String orderByColumn);

    String insert();
}
